package com.swt.domain;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Aboutcourse {
    private int aboutcourseId;
    private String aboutcourseName;
    private String aboutcourseDate;
    private String aboutcourseTime;
    private String abourcourseClassroom;
    private String aboutcourseCategory;
    private Integer aboutcourseUserid;
    private String aboutcourseUsername;
    private String aboutcourseUserphone;
    private Integer aboutcourseCourseid;//课程id
    private String aboutcourseNote;
    private Integer aboutcourseClubid;//场馆id
    private String aboutcourseStatus;
    private String aboutcourseImg;

    @Id
    @Column(name = "aboutcourse_id")
    public int getAboutcourseId() {
        return aboutcourseId;
    }

    public void setAboutcourseId(int aboutcourseId) {
        this.aboutcourseId = aboutcourseId;
    }

    @Basic
    @Column(name = "aboutcourse_name")
    public String getAboutcourseName() {
        return aboutcourseName;
    }

    public void setAboutcourseName(String aboutcourseName) {
        this.aboutcourseName = aboutcourseName;
    }

    @Basic
    @Column(name = "aboutcourse_date")
    public String getAboutcourseDate() {
        return aboutcourseDate;
    }

    public void setAboutcourseDate(String aboutcourseDate) {
        this.aboutcourseDate = aboutcourseDate;
    }

    @Basic
    @Column(name = "aboutcourse_time")
    public String getAboutcourseTime() {
        return aboutcourseTime;
    }

    public void setAboutcourseTime(String aboutcourseTime) {
        this.aboutcourseTime = aboutcourseTime;
    }

    @Basic
    @Column(name = "abourcourse_classroom")
    public String getAbourcourseClassroom() {
        return abourcourseClassroom;
    }

    public void setAbourcourseClassroom(String abourcourseClassroom) {
        this.abourcourseClassroom = abourcourseClassroom;
    }

    @Basic
    @Column(name = "aboutcourse_category")
    public String getAboutcourseCategory() {
        return aboutcourseCategory;
    }

    public void setAboutcourseCategory(String aboutcourseCategory) {
        this.aboutcourseCategory = aboutcourseCategory;
    }

    @Basic
    @Column(name = "aboutcourse_userid")
    public Integer getAboutcourseUserid() {
        return aboutcourseUserid;
    }

    public void setAboutcourseUserid(Integer aboutcourseUserid) {
        this.aboutcourseUserid = aboutcourseUserid;
    }

    @Basic
    @Column(name = "aboutcourse_username")
    public String getAboutcourseUsername() {
        return aboutcourseUsername;
    }

    public void setAboutcourseUsername(String aboutcourseUsername) {
        this.aboutcourseUsername = aboutcourseUsername;
    }

    @Basic
    @Column(name = "aboutcourse_userphone")
    public String getAboutcourseUserphone() {
        return aboutcourseUserphone;
    }

    public void setAboutcourseUserphone(String aboutcourseUserphone) {
        this.aboutcourseUserphone = aboutcourseUserphone;
    }

    @Basic
    @Column(name = "aboutcourse_courseid")
    public Integer getAboutcourseCourseid() {
        return aboutcourseCourseid;
    }

    public void setAboutcourseCourseid(Integer aboutcourseCourseid) {
        this.aboutcourseCourseid = aboutcourseCourseid;
    }

    @Basic
    @Column(name = "aboutcourse_note")
    public String getAboutcourseNote() {
        return aboutcourseNote;
    }

    public void setAboutcourseNote(String aboutcourseNote) {
        this.aboutcourseNote = aboutcourseNote;
    }

    @Basic
    @Column(name = "aboutcourse_clubid")
    public Integer getAboutcourseClubid() {
        return aboutcourseClubid;
    }

    public void setAboutcourseClubid(Integer aboutcourseClubid) {
        this.aboutcourseClubid = aboutcourseClubid;
    }

    @Basic
    @Column(name = "aboutcourse_status")
    public String getAboutcourseStatus() {
        return aboutcourseStatus;
    }

    public void setAboutcourseStatus(String aboutcourseStatus) {
        this.aboutcourseStatus = aboutcourseStatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Aboutcourse that = (Aboutcourse) o;

        if (aboutcourseId != that.aboutcourseId) return false;
        if (aboutcourseName != null ? !aboutcourseName.equals(that.aboutcourseName) : that.aboutcourseName != null)
            return false;
        if (aboutcourseDate != null ? !aboutcourseDate.equals(that.aboutcourseDate) : that.aboutcourseDate != null)
            return false;
        if (aboutcourseTime != null ? !aboutcourseTime.equals(that.aboutcourseTime) : that.aboutcourseTime != null)
            return false;
        if (abourcourseClassroom != null ? !abourcourseClassroom.equals(that.abourcourseClassroom) : that.abourcourseClassroom != null)
            return false;
        if (aboutcourseCategory != null ? !aboutcourseCategory.equals(that.aboutcourseCategory) : that.aboutcourseCategory != null)
            return false;
        if (aboutcourseUserid != null ? !aboutcourseUserid.equals(that.aboutcourseUserid) : that.aboutcourseUserid != null)
            return false;
        if (aboutcourseUsername != null ? !aboutcourseUsername.equals(that.aboutcourseUsername) : that.aboutcourseUsername != null)
            return false;
        if (aboutcourseUserphone != null ? !aboutcourseUserphone.equals(that.aboutcourseUserphone) : that.aboutcourseUserphone != null)
            return false;
        if (aboutcourseCourseid != null ? !aboutcourseCourseid.equals(that.aboutcourseCourseid) : that.aboutcourseCourseid != null)
            return false;
        if (aboutcourseNote != null ? !aboutcourseNote.equals(that.aboutcourseNote) : that.aboutcourseNote != null)
            return false;
        if (aboutcourseClubid != null ? !aboutcourseClubid.equals(that.aboutcourseClubid) : that.aboutcourseClubid != null)
            return false;
        if (aboutcourseStatus != null ? !aboutcourseStatus.equals(that.aboutcourseStatus) : that.aboutcourseStatus != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = aboutcourseId;
        result = 31 * result + (aboutcourseName != null ? aboutcourseName.hashCode() : 0);
        result = 31 * result + (aboutcourseDate != null ? aboutcourseDate.hashCode() : 0);
        result = 31 * result + (aboutcourseTime != null ? aboutcourseTime.hashCode() : 0);
        result = 31 * result + (abourcourseClassroom != null ? abourcourseClassroom.hashCode() : 0);
        result = 31 * result + (aboutcourseCategory != null ? aboutcourseCategory.hashCode() : 0);
        result = 31 * result + (aboutcourseUserid != null ? aboutcourseUserid.hashCode() : 0);
        result = 31 * result + (aboutcourseUsername != null ? aboutcourseUsername.hashCode() : 0);
        result = 31 * result + (aboutcourseUserphone != null ? aboutcourseUserphone.hashCode() : 0);
        result = 31 * result + (aboutcourseCourseid != null ? aboutcourseCourseid.hashCode() : 0);
        result = 31 * result + (aboutcourseNote != null ? aboutcourseNote.hashCode() : 0);
        result = 31 * result + (aboutcourseClubid != null ? aboutcourseClubid.hashCode() : 0);
        result = 31 * result + (aboutcourseStatus != null ? aboutcourseStatus.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "aboutcourse_img")
    public String getAboutcourseImg() {
        return aboutcourseImg;
    }

    public void setAboutcourseImg(String aboutcourseImg) {
        this.aboutcourseImg = aboutcourseImg;
    }
}
